def METHOD_NAME(doc):
    if doc.is_amended:
        for row in ORIGINAL_VS_AMENDED:
            if row["original"] in doc.classification:
                return row["original"]
    for row in ORIGINAL_VS_AMENDED:
        if row["original"] == doc.classification:
            return row["amended"] or row["original"]