Refactor the diagnostic DeclContext printing.  No functionality change.