Coded Legend more defensibly