Merge `RollupTypeCacher` functions into `IncomingMetricMetadataAnalyzer`

That way we only have to iterate over the metrics once.