Refactory domain event.