Extract creating customer to class