Pull out more code from GreedyPlanningStrategy