Removes unused Swing classes
Removes duplication between CostView and TraitView