Clean up dirty code.