def METHOD_NAME(self, opt_lib):
    # return list of removed distributed opt methods or None if nothing removed.
    opt_to_remove = []
    for item in self.opt_list:
        if opt_lib[item[0]].distributed_only(item[1]):
            opt_to_remove.append(item)
    if len(opt_to_remove) > 0:
        removed_names = [item[0] for item in opt_to_remove]
        for item in opt_to_remove:
            self.opt_list.remove(item)
        return removed_names
    else:
        return None