Simplify getting CXXRecordDecl from a base iterator