move message get all in helper

Link: https://github.com/GeneAssembly/biosal/issues/209
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>