Trio

Regexing the output names for `merged_result` makes me slightly uncomfortable (I think this is happening in a few places). Perhaps the information about which reports involve merged results is best stored in the database somewhere/somehow?