move process_with_node and process_with_other_node back in rewriter/instance