Remove deprecation warning for disable_with