def merge(root_config, *args):
    """Merge two configuration dictionaries together."""

    root = root_config.copy()

    for arg in args:
        clean = {k: v for k, v in arg.items() if v is not None}
        root.update(clean)
    return root