[C++] Refactor handling of special targets
[C++] Refactor handling of special targets

danw/kati,google/kati,google/kati,google/kati,danw/kati,danw/kati,danw/kati,google/kati,danw/kati,google/kati,danw/kati