As part of SERVER-41198 and friends we'll need a replacement helper. I've split out this work into a separate ticket to minimize merge conflicts.
Translate $out tests in jstests/aggregation/sources/out to use $merge
Translate $out tests in jstests/sharding to use $merge
Translate tests in other directories to use $merge