Legally they can do whatever they want if it’s sold to a dealer. Read your purchase agreement.
Just because something is in a purchase agreement doesn't necessarily mean it's legal. Companies practice blatantly illegal anti-consumer behavior all the time, and often they get away with it because of this misconception.
If OP has the means and the wherewithal I would encourage them to speak to a lawyer about this to see if they have a case.