Class of service refactory.