Maybe call `getTransform` once and clone that result twice like you have it here?