Pull more code out and remove NIIsSupportedOrientation.