Removing mutable state out of the TaskFilterService