Refactor editor