Split Pathfinder::findPaths up.