'This method removes the devices that exceeded the number of retries
from failed_devices and failed_ancillary_devices'

def _remove_devices_not_to_retry(self, failed_devices, failed_ancillary_devices, devices_not_to_retry, ancillary_devices_not_to_retry):

    for event in ['added', 'removed']:
        failed_devices[event] = (failed_devices[event] - devices_not_to_retry[event])
        failed_ancillary_devices[event] = (failed_ancillary_devices[event] - ancillary_devices_not_to_retry[event])
