Avoid raising an unnecessary deprecation warning.