extract vote methods to module