Refactor AggregatedMetricData (moved to snoozecommon)