Clean up various parts.