Refactoring node constructors to be shorter