reorganised rafter_voting.erl