New method remove_track_nodes and remove_identity_nodes