[LMP] Moved rule symbol gen to util for #1627.
[LMP] Draw the flag icon for rules, closes #1627.