(h) Any portion of the condominium for which insurance is required under this section which is damaged or destroyed must be repaired or replaced promptly by the association unless: (1) The condominium is terminated, in which case Section 35-8A-218 applies,(2) Repair or replacement would be illegal under any state or local statute or ordinance governing health or safety, or(3) Eighty percent of the unit owners, including every owner of a unit or assigned limited common element which will not be rebuilt, vote not to rebuild. The cost of repair or replacement in excess of insurance proceeds, including any deductible or retention under any contract of insurance, and reserves is a common expense.If the entire condominium is not repaired or replaced, (i) the insurance proceeds attributable to the damaged common elements must be used to restore the damaged area to a condition compatible with the remainder of the condominium, (ii) except to the extent that other persons will be distributees under Section 35-8A-205(a)(12)(ii),
(1) The insurance proceeds attributable to units and limited common elements which are not rebuilt must be distributed to the owners of those units and the owners of the units to which those limited common elements were allocated, or to lienholders, as their interests may appear, and(2) The remainder of the proceeds must be distributed to all the unit owners or lienholders, as their interests may appear, in proportion to the common element interests of all the units. If the unit owners vote not to rebuild any unit, that unit's allocated interests are automatically reallocated upon the vote as if the unit had been condemned under Section 35-8A-107(a), and the association promptly shall prepare, execute, and record an amendment to the declaration reflecting the reallocations.