section, is transferred to anyone other than a beneficiary or distributee in class AA, A or B as provided in section 12-344 or is no longer classified as farm land in accordance with section 12-107c, such beneficiary or distributee shall be liable for a tax applicable to such transfer or change in classification.