Get rid of getRootSymbol and include target's flags in transient symbol's flags