def remove_namespace(tag, name, ns_dict):
    """Used to remove namespaces from tags to create keys in dictionary for quick key lookup.

        Attr:
            tag(str): Full tag value. Should include namespace by default.
            name(str): The namespace key. Usually the ticker of the company.
            ns_dict(dictionary): Mapping of all the namespace links.
    """
    tag = tag.replace('{}'.format(ns_dict[name]), '')
    tag = tag.replace('{', '')
    tag = tag.replace('}', '')
    return tag