Move ReferenceTree classes to a separate subpackage.