'Remove a volume from its storage groups and cleanup replication.
:param array: the array serial number
:param device_id: the device id
:param volume_name: the volume name
:param extra_specs: the extra specifications
:param volume: the volume object'

def _remove_vol_and_cleanup_replication(self, array, device_id, volume_name, extra_specs, volume=None):

    self.masking.remove_and_reset_members(array, device_id, volume_name, extra_specs, False)
    if self.utils.is_replication_enabled(extra_specs):
        self.cleanup_lun_replication(volume, volume_name, device_id, extra_specs)
