From a commit message in #25487:
In the long run, I think we should probably invert the validation <-> mempool relationship. Instead of mempool not depending on validation, we should have validation not depend on mempool.
Background: We used to have a circular dependency between txmempool <-> validation. This was cut in #22677, so now we have validation -> txmempool.
Didn’t want to pollute the review comments there, so opening this to discuss removing mempool-related things from validation.{h,cpp} and what the ideal organization might look like.