Refactoring UuidEntity.