fn rebuild_labels( metric: &SeriesLabels, name: Option<Arc<str>>, keep: impl Fn(&str) -> bool, ) -> Result<SeriesLabels>
One rebuild: removing labels one by one copies the label array each time.