Enable deprecations as exceptions