Switch surface code to constants. Remove unneeded code.