def trim_leading_org(repo, org):
    """Strips leading organization from repository names.
    Example: autopkg/recipes --> recipes
    """
    if repo.startswith(org + "/"):
        return repo.replace(org + "/", "")
    return repo