ValueFlow: Cleanup code by using SymbolDatabase provided scope info