Install generator's code refactored