Refactor the vote functionalities.
Refactor the vote functionalities.