Refactor StopCondition and PathGenerator interfaces