Refactor program installation.