Do not create Text/ArrayOperations manually.

I introduced factory methods. This allows to change the underlying
format without breaking other code.