function removeLocalReferenceFromPath(refValue) {
  if (refValue.$ref.includes(localPointer)) {
    return refValue.$ref.split(localPointer)[0];
  }
  return refValue.$ref;
}
Removes the local pointer inside a path
aab.yaml#component returns aab.yaml
@param {string} refValue - value of the $ref property
@returns {string} - the calculated path only