Remove codes related to modes