libxrdp-ng-xup: refactor