Turn deprecations into errors

This fixes #1150 for 3.0.

/cc @JonRowe @xaviershay @soulcutter