Have you thought about using a more dynamic method of getting these constants? Like https://github.com/rubymotion/BubbleWrap/blob/master/motion/core/device/camera.rb#L203

#203 will add more structure to this pattern