Pull out KV length into a constant.