Extract total_votes to module