refactoring retrieval of location_codes to it's own function
refactoring retrieval of location_codes to it's own function

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq