[PATCH v6 2/2] put processing args in seperate function