Update to Func<AppFunc,AppFunc>