I’ve already replaced the code in one of my plugins with this new feature and created hooks to allow enabling/disabling post types and users sitemaps.