Simplify some timeline display code