Abstract some item styles using record class.