Clean up unused dictionary indices.