We used to pass Config before the verification was split.
The original commit is about changing the signature of VerifyDB, but this is not applicable to our codebase because we need the config to get the max block size.
Partial backport of core#23280:
https://github.com/bitcoin/bitcoin/pull/23280/commits/15f2e33bb3d1ad3bc997f6a84956337f46495091
Depends on D12578.