Refactor create vote