Refactor Categorize Command classes

We should refactor `CategorizeCommand` classes and move them to a
subdir.

refer #82