Refactor global settings editor.