categories_for_level function

Use metadata to extract categories for column of specific level