EventMap opens up routeEventToListener. Some minor refactorings