Refactoring: extracting function splitTokenIntoArguments