Refactor editing tools.