Reorganize flex file.