Please, read the documentation and project changelog!
Yoast support was removed since v1.13.0, but we maintained some partial support until the last release (v1.15.1) when it was completely removed. This code is not needed anymore, sitemaps works perfectly fine without it. All these changes are perfectly documented.
PayPal · GitHub Sponsors · Bitcoin