Use the JsonAggregateStatsService in Azure and the SqlAggregateStatsService otherwise