Correct type deprecations for OTP 17