Yup that's exactly right. Pull the consensus code out of the bitcoin core codebase and into a library that core imports as a dependency. Just like we did with the cryptography in libsecp256k1.
I wrote a bit about this project here: https://habla.news/u/vnprc@trianglebitdevs.org/MU9RlQn3Z_MlufIXM8dVt