Use class_selected helper.

tiny r? (@rehandalal)