Cleaner version of remove_object...I didn't have to switch to a dict after all.