The code looks quite pretty, except for a bit of the close-all-the-braces I see:
},
},
},
})
}
Is there a way to write this more clearly?