(h)???Any portion of the common interest community for which insurance is required under this section which is damaged or destroyed must be repaired or replaced as soon as practicable by the association unless: (i) the common interest community is terminated, in which case ?? 81-218 of this title applies (ii) repair or replacement would be illegal under any state or local statute or ordinance gove