Eliminating duplicate classes in build file