Move node constructor to separate file & object