Clean up index class.