Simplify computation of encoding size.