This also moved into SearchModel. Eventually, we could unify it with the one in FindReplace.