Extract vote methods to module