Self-expanding automated factory