Add type to ModuleConfiguration. Delete useless Modules.