CMS-3357 Remove createModule calls in API and core. Removed createModule and createResource.