Moved the loadprefs from the QDM to classes