Refactor DocumentSet.