Splitting installation script to a generic and instance specific parts (the latter can be used repeatedly to create multiple instances).