Remove Only Feature FID and layerName from Popup Window

I have a bunch of features that I want to display attributes for. Right now I have it set to iTemplate = new InfoTemplate(layerName, "${*}"); which shows everything. I want to display everything exceptthe FID and layerName. I really don't want to have to define each attribute for every layer in the map. Each layer has slightly different attributes. Is there a way to exclude those two common attributes from the popup and show everything else?

The only thing I can think of that will allow you to not define all the fields manually and still remove the FID and layer name is to attach an event to the maps infowindow "set-features" event and then get the graphics attributes array and remove those fields from the array.