xrdp-ng: reduce module manager code