Remove the use of `Object.assign`