def _unique_deps(new_deps_list):
    """Unique dependency list, for duplicate items only keep the later ones."""
    result = []
    deps = set()
    for dep in reversed(new_deps_list):
        if dep not in deps:
            result.append(dep)
            deps.add(dep)
    return list(reversed(result))