Secondary structure reshuffling modulates glycosyltransferase function at the membrane.