def METHOD_NAME(self, apple_id, target_team_id):
    """
    Given an Apple ID from the old transferring team,
    create and return its respective transfer id.
    Update access token if expired.
    Skip the current apple_id in case of a malformed
    request error and log info.
    """
    try:
        transfer_id = self._fetch_transfer_id(apple_id, target_team_id)
    except AccessTokenExpiredException:
        log.info('Access token expired. Re-creating access token.')
        self._update_token_and_secret()
        transfer_id = self._fetch_transfer_id(apple_id, target_team_id)
    except BadRequestException:
        log.info('Bad request for uid %s.', apple_id)
        transfer_id = ''
    except (requests.exceptions.JSONDecodeError, AttributeError):
        log.info('JSONDecodeError/AttributeError for uid %s.', apple_id)
        transfer_id = ''
    return transfer_id