Revert isolated Sitemap instances change. Use `wp` action hook instead of `pre_get_posts`