Revert "Move expanded ensemble history copy to trajectory writing"
This reverts commit 5275874f.
That change will become useless once the merge from release-2022 deactivates checkpointing for expanded ensemble. That change was also described wrongly, as it does not affect the modular simulator at all.