Refactor transformation containers into their own class.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>