move replacement to hook_node_insert() #1944