(f) Any member who resigns for reasons other than health or election to the other house prior to the expiration of any year of the term for which such member was elected, and who has received the total compensation and reimbursement for expenses provided under subsections (a) and (b) of this section for that year, shall reimburse the state in an amount equal to that portion of such total compensat