Add deprecated_commands API

And rewrite edit-method / show-command to use this API.