Refactored vista_rpc to be a class VistaRpc.