I suggest there be an exclusion added to Worst In Bag to not count legendary items ilvl.
They are likely to be much higher level than other items and throw the system off. Consider that you may wear a legendary in your legs slot; the system would encourage you to consider other options in that slot to be low level and be sold. Then one day you change legendary items to a different slot, you now have no options for legs to replace the previous legendary item. By excluding orange items from the system you would always have a high level option to use in this case.
Thanks for you consideration.