We need a plan for better organisation of the source code. We can collect issues regarding this here.
For example, code in /src/core/intrinsic.jl seems to be only relevant to samplers (and a bit messy). It would be easy to maintain if we move it to /src/samplers/ (or sub-folder).