Make configuration script reusable