Pre-witness my plan was to get rid of ContextualCheckBlock and move its check to ConnectBlock/Consensus::VerifyTx, so this was not necessary.
This should be the last existing consensus function that needs to get Consensus::Params instead of ChainParams or call Params() from inside.