Clean Up pt2

Further removed unused code.
Renamed PreCastPreCastFlags to PreCastFlags.