NEXUS-5749: Use public API, not internal helper.