If a member has completed at least eight (8) years of credited service at the time of his termination of employment he may elect to receive, in lieu of all other benefits he is eligible to receive, either (a) or (b) as follows:
Notwithstanding anything in § 17-529 or in this section to the contrary, if the termination of employment of a member is by impeachment or other removal from office, he shall not be entitled to any benefit under this system except a refund of contributions made by the member. If a member whose contributions have not been refunded under § 17-529 or this section is reemployed as a judge, his credited service shall not be deemed to have been interrupted, but shall not include any time during which he was not a judge. This section shall not apply if a member terminates employment and elects to participate in accordance with § 17-517.
T.C.A. § 17-530