[iOS] remove copy on dictionary in helper function