Revert "Remove feature warnings and fix deprecations."

This reverts commit 9d0fdb196e650103eb5b86e12a9a8ffc44c14670.