Merging new with old color styles with the same name from two different libraries

I have files that I need to clean up, it has colors of two different libraries that has same color style names that are mixed up in one file.

What is the best way (or a plugin to install) to merge new colors with the old library that I want to use (besides doing that manually)?

+1 that would be a great feature!