Refactored geocode and places tasks