Move FlyingUtil methods to NMS and Util