refactor wizard