Choosing how to choose: self-stable majority rules and constitutions