function getBeforeHooksFromObject(reducerObject) {
  return removeKeyNamePartFromObject(
    pickBy(reducerObject, (value, key) => key.endsWith('BEFORE')), '_BEFORE');
}
Gets an object that consists of only the _BEFORE hooks. _BEFORE will be removed from the key.
@param {Object} reducerObject - the reducer to get the _BEFORE hooks from