Split commands into multiple classes