Commonalities between GT.M abd Cache Output Streams are refactored out.