Remove unused classes and configuration