Remove deprecated methods in ApiQuery