Yeah, if you have a bunch of files setup the same way, an Action could convert them without much trouble. Sample the color from the bottom layer, delete contents, make a selection of the whole file, new layer filled with the sample color, add a layer mask, fill the bkg with white, etc.