Refactors the Event helper methods into smaller methods and moves them out into a module.