move LegacyTargRep to lib/