Refactor system call in Repman dialog.