Encapsulate logic for deciding how to render a given value