from typing import Dict


def remove_and_replace(
    table: Dict[str, Dict[str, str]], good: str, bad: str
) -> Dict[str, Dict[str, str]]:
    """
    Small helper method to combine two columns and remove
    the duplicate
    :param table: Translation table
    :param good: Key to keep and merge into
    :param bad: Key to delete after merging
    :return: Translation table fixed
    """
    table[good] = {**table[bad], **table[good]}
    del table[bad]
    return table