Why slowly switch? Why not just start trazodone the first day of the dose decrease?
Was it every single night Xanax or just as needed?
While Xanax is especially habit forming and anything for sleep is habit forming, idk if it will be nearly as bad as trying to take her off a higher dose or multiple daily doses. Though it sounds like she's been coming off it since you said multiple years but 0.5 at night for just one year. That last half mg can be super hard for some people. Other people don't find it as hard as the first 2 mg.
When it is especially difficult to get off the last 0.5, sometimes I have them do 0.5 for six nights a week with 0.25 once a week, then 0.5 five nights a week, etc. Though usually I'm dealing with mornings, not nights. Why use Xanax for sleep?