core-simpl: lambda lifted refactor to build hosted fn separately