Strip semantic blocks, leaving only math.