getNestedDeletedValues = (prefix, deletedFields, accumulator = {}) =>
  getDeletedValues(removePrefix(prefix, filterPathsByPrefix(prefix, deletedFields)), accumulator)
Filters the given field names by prefix, removes it from each one of them
and convert the list to an object of deleted values.

@param {string=} prefix
 Prefix to filter and remove from deleted fields
@param {string[]|Object.<string|string>} deletedFields
 List of deleted field names or paths
@param {Object|Array=} accumulator={}
 Value to reduce the values to
@return {Object.<string, null>}
 Object keyed with the given deleted fields, valued with `null`
@example
 const deletedFields = [
   'field.subField',
   'field.subFieldArray[0]',
   'fieldArray[0]',
   'fieldArray[2].name',
 ];
 getNestedDeletedValues('field', deletedFields);
 // => { 'subField': null, 'subFieldArray': [null] }
 getNestedDeletedValues('fieldArray', deletedFields);
 // => { '0': null, '2': { 'name': null } }
 getNestedDeletedValues('fieldArray', deletedFields, []);
 // => [null, undefined, { 'name': null } ]