Split rpc handling into multimethod