Affiliated packages can opt-in to deprecations-as-exceptions

Requires astropy/astropy#2572 to pass.