The funny thing is, that it’s is cheaper to take down a bridge than to rig it at another shipyard that doesn’t have the height restriction issue.
Ps. it’s a sailboat, the masts and rigging are separate from the hull.
When the Brooklyn Bridge was built, taller ships passing under it had to strike their topmast, an expensive procedure. During the 20th Century, U.S. Naval vessels were sized to be able to pass under the Brooklyn Bridge and through Panama Canal.