Moves bootstrap code into bootstrap file