Lift simplify to operate on processes.
Extract `transformProcess` from a common pattern.