CMS-4557 Move module implementation to own module.