chore(docs): refactor parsing into a service and add tests)