Can these two transform(...) calculations be stripped down or be written more readable (e.e.g intermediate results in named variables). Atm, I'm only understanding trainstation of what happens here.