Refactor vote retrieval routines in showvotes() and results() so they come from a single method