Use context manager for output filtering and filter in ``do`` helper.