remove/merge classes into module class