Reduce code duplication.
This commit eliminates import statements happening in the middle of the file (between two classes definition). The cycles are still there. The only magic module is qubes itself.
Do not keep them in system qubes.xml.