Convert factory to decorated constraints.