Extracting the is_categorized conditional