Vote repository refactoring