iOS: Move the code to calculate the FOV to a separate method