Xrf fit

Why is the size of the smoothing window tied to the binning?  Why are these values hard-coded?