If a lambda is this big, I'd often make it into its own top-level function for readability purposes.