For an example of this simplification in practice, see https://github.com/kogmbh/WebODF/pull/609/files#diff-d04cfa67fc539314d937494db882988aR429.