iOS: minor refactor