Made remove_snapshot_node delete the snapshot node and reduce children reference counts.