Clean up relevant pieces of code.