[ios] Refactored out duplicated code.
[ios] Refactored out duplicated code.
KnowSheet/Alohalytics,KnowSheet/Alohalytics,deathbaba/Alohalytics,KnowSheet/Alohalytics,deathbaba/Alohalytics,deathbaba/Alohalytics,deathbaba/Alohalytics,KnowSheet/Alohalytics,deathbaba/Alohalytics,KnowSheet/Alohalytics