Update the way dimension_of_ordinary_subspace is cached.