refactoring: create move some methods from DocumentService to WorkflowService