Move legend rendering in to client to separate responsibilities from
application