Moved hide_deprecated to preinst to prevent conflicts with diversions