Cleaning up extraneous code, eliminating side effects.