Refactoring (PathFinding)