A judicial officer, as defined in 1-1-202, after the expiration of the officer's term of office, may not act as attorney or counsel in any action or special proceeding that has been before the officer in the officer's official capacity.
§ 3-1-605, MCA