Factor out PathRunner.