This is an awkward line.  Perhaps simplify it to:

```scala
val useIndexOnlyIterator = IndexIteratorTrigger.useIndexOnlyIterator(ecql, query, sourceSimpleFeatureType)
val useTransform = IndexIteratorTrigger.generateTransformedSimpleFeature(ecql,query,sourceSimpleFeatureType )

val sfType =
  if(useIndexOnlyIterator && useTransform) transformedSimpleFeatureType(query).get
  else sourceSimpleFeatureType

if(useIndexOnlyIterator) configureIndexOnlyIterator(bs, opoly, oint, query, sfType, ecql)
else configureFullIterator(bs, opoly, oint, query, sfType, ecql)
```

if(useIndexOnlyIterator) configureIndexIterator(bs, opoly, oint, query, sfType)
if(!useTransform) configureSimpleFeatureFilteringIterator(....)
if(!useIndexOnlyIterator)