Change object AverageRate to service AverageRateCalculator.