Remove the use of `Object.assign`

Disclaimer: I’m sleepy and I might be missing something here