Remove duplicate source keys from dictionaries