def strip_url_fields(blob):
    """
    Utility function to strip out the "_url" fields returned from GitHub, since
    they aren't really useful for the purposes of Security Monkey, and add in
    bloat to the record.

    This will recursively remove them from nested dictionaries.
    :param blob:
    :return:
    """
    keys_to_delete = []

    if isinstance(blob, list):
        for item in blob:
            strip_url_fields(item)
    if not isinstance(blob, dict):
        return blob

    for k in blob:
        # Is the field a dictionary or list of dicts?
        if isinstance(blob[k], dict) or isinstance(blob[k], list):
            strip_url_fields(blob[k])

        if "_url" in k:
            keys_to_delete.append(k)

    # Delete them:
    for k in keys_to_delete:
        del blob[k]

    return blob