remote: convert query_refspecs to take a struct refspec