Moved mongo space finding code into its own function.
Moved mongo space finding code into its own function.

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