The following are exempt from militia service: persons exempt by the laws of the United States, judges of the courts of the state, and members and officers of the state legislature.