Move more RPC functions to autogenerated code