Refactoring script unité