Make getBaseSymbol non recursive.