Remove unused chains