CMS-4555 Move event implementation to own module.