Fix inner `final case class` warnings.