Put common airfoil code in a separate file