Makes sense and saves on arguments.
Completes backport of core#22415:
https://github.com/bitcoin/bitcoin/pull/22415/commits/ceb7b35a39145717e2d9d356fd382bd1f95d2a5a
The last (4th) commit is not relevant as we already have a cleaner solution for UpdateMempoolForReorg (see D1667).
Depends on D12230.