Refactoring parse event dispatching.