Right, those two procedures should be the same. I'll homogenize them. As I was typing, I thought that discretize_xr_fby_expansion was more explicit, but I forgot to change the first two references. I'll do that now.
discretize_xr_fby_expansion
to: "Right, I made a typo"