Split transformer code