Simplify code with `pathArg`.