Adjust to changes in the metadata-api response for metrics

This should be merged after https://github.com/alphagov/metadata-api/pull/1 is merged.