[#87981] Extract view condition into a method