Move document building into separate class