Gmaps - refactor typeahead to move out of home controller and into a factory.