Remove TIG query code