Add the ability to retain DeclarationReference