RF: make filter function public by renaming

We need the filter function from a script.