Refactoring create method.