doc.
refactoring of ReferenceSet.