Added DeprecationWarning to wagtailadmin.hooks