add the `_loadModule` internal helper and use it to refactor _ThemeProxy and _ModeProxy ctors