SymbolTable: Instead of duplicating the lookup logic in multiple places, just call a method called findEntry from both places it is needed.