Remove obsolete dependency on target frameworks list.
Remove some dead code.