You could factor these calls to `Object.defineProperty` into a function.