A lot of code could be deleted if we switch siteminder to use ctools's new export UI - specifically all the code that deals with add/edit/import/export/delete/toggle. I think this is simple enough to put in 6.1.x.