remove friend class declarations from IndexDetails