We will be doing this when collecting featurebits from the plugins, so make this a reusable function.
extern