Question: When was the treatise that allowed a congregation to elect or remove a minister?
Sentence: The members of a congregation had the right to elect a minister and, if necessary, to vote for his dismissal (Treatise On the right and authority of a Christian assembly or congregation to judge all doctrines and to call, install and dismiss teachers, as testified in Scripture; 1523).
Answer in sentence: yes