Yeah, your solution and the solutions I thought about is an overhead, I guess. What about extracting those two loops to new methods so the `bindPointTypeFilters()` will get shorter and easier to read?

```js
if (filterClicked.classList.contains('enabled')) {
   markPointTypeFiltersAsDisabled(filterClicked, pointType);
   hidePoints();
} else {
   markPointTypeFiltersAsEnabled(filterClicked, pointType);
   showPoints();
}
```