PROTON-749: Ensure that old code still works when using the deprecated APIs.