(2A) Notwithstanding subdivision (1) or (2) any member classified in Group 1, Group 2 or Group 4, who became a member on or after April 2, 2012, has completed 10 or more years of creditable service, and:
(a) who fails of reappointment;
(b) who is removed or discharged from the member's office or position without moral turpitude on the member's part;
(c) who accepts, during or prior to the expiration of a term for which the member was elected, appointment to an office or position the acceptance of which requires under the constitution of the commonwealth resignation from the general court;
(d) whose office or position is abolished; or
(e) who resigns or voluntarily terminates the member's service, who leaves the member's accumulated total deductions in the annuity savings fund of the system of which the member is a member, shall have the right upon attaining the minimum retirement age for the member's Group, or at any time thereafter, to apply for a superannuation retirement allowance to become effective under subdivision (3).
Such allowance shall be determined under section 5 or any other section governing superannuation retirement applicable to such member upon the basis of the member's age on the date when the retirement allowance becomes effective, with an amount of creditable service equal to that with which the member was credited on the date of the member's termination of service.