Simplify locate_merge_path functor.