Script packs refactoring