Remove lattice code