Can't you move this into StructDeclaration (assuming not adding getRTInfo).