With Sitecore XM Cloud, items can be used as resources, as detailed in the official documentation. If a template is inadvertently modified, its source will change from resources to database. This change can be observed in the template section by enabling the source view from the view menu.
The challenge arises when you need to revert the item source from database back to resources, especially when there are numerous content items already created based on the affected template. The goal is to achieve this without resorting to a workaround that involves moving content to a different template, deleting the existing one, and replacing it.
Given this scenario, what is the ideal method to revert the item source from database back to resources, ensuring the synchronization in the next deployment? If anyone has expertise in this area, please provide your recommendations.