Refactoring.
Update declaration property check to IDeclarationNode suptypes.