Suppress deprecations while testing legacy code path