Moved EventManager to a separate component.