How to repair UCS and Appstore repositories / reset to defaults

Hi everyone,
as we have experienced some weird issues with repositories being outdated, containig dupes, or simply being filled with some wrong entries, i was wondering, if there was any possibility to recreate the correct, default repository lists from scratch, including all repos needed for the installed apps.
It would be great, if someone had an idea on this.