Cleaned up some DeclarationNode? code that had some extra code no longer needed because of the translation. Also added a helper function for clarity.