Categories are used for provider plugins and generator plugins. Code is currently duplicated in the toolkit side and in the arranger side.
Extract and generalize the category handling helpers.