PY-17107: Removing outdated deprecated code