Migrate metadata into a separate meta-repo and manage the meta-repo safeguard