Extracted PoissonGammaGaussian to a separate function