Separated document classes from parsers