Anotate filter_* functions to clarify that they mutate state