Delete legacy codes