Use lineageOfType to simplify two rendering helpers.