Refactoring urgency category controller