Refactored the classChange to be simpler

It now simply returns the dynamic state of the boost/badge and all the
oldstate/newstate is handled in one place where it is called