Strip down useless code.