Factor out function
Factor out function

ericsnowcurrently/juju,axw/juju,bz2/juju,marcmolla/juju,mjs/juju,gabriel-samfira/juju,mjs/juju,bz2/juju,axw/juju,bac/juju,bac/juju,marcmolla/juju,reedobrien/juju,bz2/juju,anastasiamac/juju,marcmolla/juju,mikemccracken/juju,gabriel-samfira/juju,perrito666/juju,perrito666/juju,bz2/juju,mjs/juju,dimitern/juju,anastasiamac/juju,ericsnowcurrently/juju,macgreagoir/juju,AdamIsrael/juju,waigani/juju,kat-co/juju,mjs/juju,bac/juju,reedobrien/juju,alesstimec/juju,kat-co/juju,anastasiamac/juju,howbazaar/juju,dimitern/juju,bac/juju,howbazaar/juju,bac/juju,perrito666/juju,macgreagoir/juju,AdamIsrael/juju,gabriel-samfira/juju,howbazaar/juju,frankban/juju,reedobrien/juju,bz2/juju,mjs/juju,axw/juju,marcmolla/juju,gabriel-samfira/juju,mikemccracken/juju,alesstimec/juju,alesstimec/juju,axw/juju,anastasiamac/juju,AdamIsrael/juju,anastasiamac/juju,perrito666/juju,howbazaar/juju,ericsnowcurrently/juju,reedobrien/juju,axw/juju,mikemccracken/juju,alesstimec/juju,mikemccracken/juju,dimitern/juju,AdamIsrael/juju,marcmolla/juju,frankban/juju,frankban/juju,mjs/juju,macgreagoir/juju,frankban/juju,howbazaar/juju,perrito666/juju,mikemccracken/juju,macgreagoir/juju,gabriel-samfira/juju,reedobrien/juju,mjs/juju,kat-co/juju,ericsnowcurrently/juju,waigani/juju,dimitern/juju,waigani/juju,kat-co/juju,alesstimec/juju,ericsnowcurrently/juju,waigani/juju,frankban/juju,macgreagoir/juju,kat-co/juju,dimitern/juju