Replace filter with list comprehension.