You could possibly build up the shared config here directly rather than creating a named variable, then duplicating this name in two places below for the editor config object. E.g.,:
```
editorConfig = {
    directTextStylingEnabled = isEnabled(args.directTextStylingEnabled),
    ...
}
```

Would reduce the unnecessary indirection and make it easier to see the config is shared between both editor types.