[PM] Simplify the interface exposed for IR printing passes.