def METHOD_NAME(apx):
    """Convert the old style xml approximant name to a name
    and phase_order.
    """
    import lalsimulation as lalsim
    apx = str(apx)
    try:
        order = lalsim.GetOrderFromString(apx)
    except:
        print("Warning: Could not read phase order from string, using default")
        order = -1
    name = lalsim.GetStringFromApproximant(lalsim.GetApproximantFromString(apx))
    return name, order