Moved all of the compilation logic into "Pipelines".