Whenever a new sheriff is elected or appointed, he or she may appoint any person as his or her chief deputy sheriff, provided such person meets the minimum standards for law enforcement officers as prescribed by the general laws of the state. The person holding the position of chief deputy sheriff immediately preceding such appointment of a chief deputy may be reduced in rank. Whenever a new municipal administration is elected or appointed, they may appoint any person as chief of police, provided such person meets the minimum standards for law enforcement officers as prescribed by the general laws of the state; and the person holding the position of chief of police may be reduced in rank.