Simplify txfm code using helper function

Change-Id: Ib92f54480035a85ab7279ffa9f8b9237d0a3f334
8 files changed