Get rid of deep_merge
Treat lists as sets
Concatenate generated_by