Refactored PlanningComparisonService to make it more readable.