If it has to happen (and that’s a BIG if), then it should be legislative rather than judicial.
It was put into place by an Executive Order (Bill Clinton). It can be removed the same way.