Replace slices with maps to move unnecessary funcs into bqProcessquery.