Move to using an interface for RPC methods