Refactor the RPC request handlers to use multimethod instead. Much cleaner implementation.