Split sampling into helpers.py and sampling.py