Use std::find_if / std::transform where appropriate

Authored by poboiko on Apr 3 2020, 12:06 PM.