fn feature_set(features: &Rc<BTreeSet<FeatureValue>>) -> BTreeSet<String>
Helper to convert features to a BTreeSet.