That's not your fault, but there's a lot of `opts.stuff =`. Can you refactor theses lines to use an object literal?

```
opts = {
  name: // etc
}
```