Modularizing the setup script