This breaks BC, but doesn't need to.

`customIndex = addOptions.customIndex || addOptions`?