There's a `category` computed property that already does what this piece of code did.
$.extend
Object.assign