Refactored MilestoneController.