Factored out Graph Annotation for Memory.