Clean up IP implementation.