Refactor for better organization of different HMC kernels.