using visitors before walkers simplifies the code a lot

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