Remove usage of InMemoryStruct in getSymbol.