Cleanup bootstrap code.