If this is the only place `details` is being used, why not just create it here once? Why add the extra level of indirection?

I'm not sure if this is what it is supposed to signify, but `let` to me is something that I want to keep a hold of instead of recreating. If you're just using it once that use case doesn't apply.