Extract code for combining messages from different results
Remove duplicate messages when combining results