Removed unused dataset-merging code and moved a related test.