def group_dict_by_var(d: dict) -> dict:
    """Given a dictionary keyed by 2-length tuples, return a dictionary keyed
    only by the second element of the tuple.
    """
    return {k: d[(proc, k)] for (proc, k) in d}