Removes redundant class constants