Move duplicated field setting code into node_new function