Removes unused classes