Composition and Decomposition of DPO Transformations with Borrowed Context