command: Hide deprecated commands (don't add them to *command-list*).
command: Hide deprecated commands (don't add them to *command-list*).

While we are at it, factor out some code, it's even shorter now.

jmercouris/NeXT,jmercouris/NeXT