Refactory commit domain event to asynchronous.