When one party ceases to improve that party's land or opens that party's enclosure, that party may take away any part of the partition fence belonging to that party and adjoining the next enclosure unless the owner or occupant of the adjoining enclosure shall pay the sum determined by a majority of the proper fence viewers to be the value of the part of the partition fence belonging to the party who has ceased to improve that party's land or who has opened that party's enclosure. The determination shall be in writing and signed by at least two fence viewers and the payment shall be made within two months after the value of the fence is ascertained.
N.D.C.C. § 47-26-15