'Remove a volume from a storage group.
:param serial_number: the array serial number
:param device_id: the volume device id
:param storagegroup_name: the name of the storage group
:param volume_name: the volume name
:param extra_specs: the extra specifications
:raises: VolumeBackendAPIException'

def remove_vol_from_storage_group(self, serial_number, device_id, storagegroup_name, volume_name, extra_specs):

    start_time = time.time()
    self.rest.remove_vol_from_sg(serial_number, storagegroup_name, device_id, extra_specs)
    LOG.debug('Remove    volume    from    storagegroup    took:    %(delta)s    H:MM:SS.', {'delta': self.utils.get_time_delta(start_time, time.time())})
    check_vol = self.rest.is_volume_in_storagegroup(serial_number, device_id, storagegroup_name)
    if check_vol:
        exception_message = (_('Failed    to    remove    volume    %(vol)s    from    SG:    %(sg_name)s.') % {'vol': volume_name, 'sg_name': storagegroup_name})
        LOG.error(exception_message)
        raise exception.VolumeBackendAPIException(data=exception_message)
