Right, maybe the above function could live in the base class ``BaseQuery``, or alternatively it should live in ``astroquery.utils``.However, I think it makes sense to put it in the ``BaseQuery`` class as we may want to have it support e.g. login which would mean it needs access to the class instance. @keflavich - what do you think?