Where the tenant in possession of farm lands under lease, with the owner as provided in K.S.A. 58-2501 owns substantially all the improvements on the land, the tenant may transfer his or her term and improvements without the consent of the landlord, and any provisions in the lease prohibiting such transfer or requiring the tenant or the tenant's assignee to remove such buildings or improvements, that does not require the landlord or the new tenant to pay the owner thereof the fair value of the improvements to the land at the time of the expiration of the lease, shall be void.
K.S.A. 58-2501a