Somehow I would prefer to have setup of the filterOrChain happen just in one if-condition, like this:
```
if (filters.length === 1) {
    filterOrChain = filters[0];
} else {
    filterOrChain = new core.PositionFilterChain();
    filters.forEach(filterOrChain.addFilter);
}
```
That way things are closer to each other.