Move GridPrior and for_each_gridpoint out of distributions