move replacement to hook_node_insert() #1944

#1944