I think because of how the template works we'd still need a function here. So putting it in Layer would just chage line 30 from `return wmsLayer.params.CQL_FILTER;` to `return wmsLayer.getCqlFilter();`.