Convert role lookups to find_if algorithm.