Extract the FOV code to a class