documents provider refactoring (move to models)