Move install logic to Installer class.