Factored out common operations from get_gcu_term_size() into balance_dimension().
Further factoring and simplification of get_gcu_term_size().