Added a helper method to confirm a query is a legacy one