factor concat-transform out into own module