refactoring script installation