Cleanup and simplify QmlFilter.