Reduced duplicated code in constructors