Move Location functions to their own Locations module