Abstracting out message computations