Remove reference to `self.writer` which does not exist.