Added management command to (re)create legend.