Handle deprecation warnings a little more gracefully.