Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.