Refactored activity-editor-generator scripts.