Move away from deprecate built-in types whenever possible

Ref OTP b66e75c285cba469c5225f3394da149456d17d16.