'Remove the last vol from an sg associated with masking views.
Helper function for removing the last vol from a storage group
which is associated with one or more masking views.
:param serial_number: the array serial number
:param storagegroup_name: the storage group name
:param maskingview_list: the liast of masking views
:param device_id: the device id
:param volume_name: the volume name
:param extra_specs: the extra specifications
:param move: flag to indicate a move instead of remove
:returns: status -- bool'

def _last_vol_masking_views(self, serial_number, storagegroup_name, maskingview_list, device_id, volume_name, extra_specs, connector, move):

    status = False
    for mv in maskingview_list:
        (num_vols_in_mv, parent_sg_name) = self._get_num_vols_from_mv(serial_number, mv)
        if (num_vols_in_mv == 1):
            self._delete_mv_ig_and_sg(serial_number, device_id, mv, storagegroup_name, parent_sg_name, connector, move, extra_specs)
        else:
            self._remove_last_vol_and_delete_sg(serial_number, device_id, volume_name, storagegroup_name, extra_specs, parent_sg_name, move)
        status = True
    return status
