Clean up and dedup message writing
Clean up and dedup message writing

juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff,juped/archaeology-cutoff