Remove debug flattening of intermediate values