Coalesce redundant wrap functions in TS and IB.