extract a module and a proxy class