refactor extractFieldsFromCategories and handle the possible cas where proposal type is a single word.