Refactor categories to event_categories