Instead of disallowing a parameter of different unit to be placed on Y=, simply removes all existing params and assigns the one that's dropped