Disable support for Apple TV within iTunes 7.1 or above. After applying this command the option ‘Apple TV’ will disappear in the navigation bar and the Advanced menu options.
defaults write com.apple.itunes disableAppleTV -bool YES
To make the command take effect, you need to restart iTunes.
Re-enable Apple TV support in iTunes with the following command:
defaults write com.apple.itunes disableAppleTV -bool NO