refactor script