Tool or process to fix obsolete references in archetypes? Example: media_capture renamed to media_file

There are similar problems with the example templates in the CKM, they are not always updated to using new major versions of included archetypes when the archetype update happens. Recently Archetype Designer has started detecting and error-reporting this upon loading of CKM-mirror from Github. I have placed four change requests to point out the failing templates:
CR-image