Use the term "type" instead of "command", except planner and dispatcher.

Because now planner and dispatcher are going to be rewritten.