Judges in office may not perform any other functions, whether public or private, other than teaching or legal research, in accordance with the law.