Move events handling to Symfony\EventDispatcher