get rid of special purpose container_flatten_index API.
we now route this function through the index optimize API
of the LogicalFD.