Refactory the DefaultEventService.