Replace entity[:indices] calls with entity.indices

Retrieving indices via entity[:indices] is deprecated in favor of using the
entity#indices method.