Refactoring common code out to pl3DPipeline.
Temp comments to help with refactoring.