`pathFromLocation` is always being called on this line, so the assignment to `pushStatePath` can be extracted to the line above for clarity.