Strip out unnecessary code.