This creates frequent logspam. For example,
Use of ObjectCache::getMainWANInstance was deprecated in MediaWiki 1.28. [Called from ChoiceDataProvider::getChoices in /srv/mediawiki/php-1.34.0-wmf.14/extensions/CentralNotice/includes/ChoiceDataProvider.php at line 40]