Refactoring constructors.