Refactor argument serialization logic when executing process. NFC.