Move implicit def to implicit val.