Compartmentalizes the voting code, to allow for further cleanup.