Following rP22253, this decouples the hierarchical pathfinder and the long pathfinder. The long pathfinder was the class owning the hierarchical pathfinder, which didn't really make sense and resulted in some interface awkwardness.
At the moment, the long pathfinder still needs to hierarchical pathfinder to compute paths (to make sure they are reachable). I think this could be decoupled too, but it was a few too many changes for this diff in my opinion.