Beta move lambda to top level function.