Remove index from targets

[#56005352]

Indices were used in the old API so that the default target could be
specified by index, but that is no longer needed in the new API since
there is just the default: true flag on the DSL.