Refactoring activity editor.