def prune_multiple_copies_of_species(tree, g2s_map, s2g_map):
    """
    Removes all but one leaf with the same species label

    Parameters
    ----------
    tree : treeswift tree object
    g2s_map : dictionary
              maps gene copy labels to species labels
    s2g_map : dictionary
              maps species label to gene copy labels
    """
    found_duplicate = set([])
    nLMX = 0
    c = 0

    for leaf in tree.traverse_leaves():
        gene = leaf.get_label()
        species = g2s_map[gene]
        all_genes = s2g_map[species]

        if gene == all_genes[0]:
            leaf.set_label(species)
            nLMX += 1
        else:
            leaf.contract()

            if not (species in found_duplicate):
                found_duplicate.add(species)
                c += 1

    tree.suppress_unifurcations()

    return [nLMX, c]