Refactoring domain log.