HOPKINS: Get rid of a magic value, rename a couple of pathfinding functions