Reducing extraneous code