Isn't it possible to move the writer outside the Term lib?