remove_filter lazy evaluation

references #1876