While generalization is good, unfortunately a lot of the RAID controller utilities work in such a wildly different fashion I'm not sure it could be effectively pulled off here.
When I made the new gmirror code I tried to make things a little generalized so that the same style could be copied for other controllers and s/gmirror/myraidadapterutility/g
Sounds like a job for OO and some class/inheritance mojo in the long run so that it could be made controller-independent.
For now you can copy the files, adjust for the utility, and make a package that would install them and add the menu entry.