Remove unnecessary modes folder.