Remove duplicated (auto tuning) code.