Refactoring command open -> category