Refactored factory of Customer.