Remove query handler.