refactoring NWScriptObjectView