Refactor mode-line.