Refactor installation files