Use a magic method for the query helpers.