This part from this `if` block could be extracted to one function and re-used in both `markPointTypeFiltersAsDisabled()` and `markPointTypeFiltersAsEnabled()` functions.