thorium: remove some bloat from the node main loop

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>