CMS-3357 Remove createModule calls in API and core.