Refactor to make MetricAccess.Static.getDistinctIds publicly accessible.
Refactor of RecalculationTask to use Metric distinct ids when possible.