A judge who pleads guilty or no contest or is found guilty of a crime committed while holding judicial office which is punishable as a felony under California or federal law and which either involves moral turpitude under that law or was committed in the course and scope of performing the judge's duties, and the conviction becomes final shall not receive any benefits from the Judges' Retirement System, except that the amount of his or her accumulated contributions shall be paid to him or her by the Judges' Retirement System.
Ca. Gov. Code § 75033.2