Moves class rendering logic into Writer