This is the scaffolding for soon-to-be RPC refactors. RPCCommand enables easy passing of dependencies only to the RPC commands that use them.
In a future diff, RPCCommand will be used to wrap the existing RPC implementations with Config as a dependency. Then, new commands can be written with
appropriate dependency injection and old commands can be slowly migrated to use non-global dependencies.