Refactor some methods in AtomicVotes module.