Optimization for toTransport method

Hi, James! In out project we have about 300 files to optimize and it takes a lot of time to build app and toTransport is the most fat stage.
Solution is little bit clumsy, so you can advice another way.