Replace `find_all_by...` calls with `where`