[TableGen] Use std::remove_if instead of manually coded loops that called erase insid...