Convert thread categories to enums