cleanup old locale code