Since we're going to need it in the boot code, move it out to a separate, easily reusable function. This also makes the InitImport logic clearer.
Since we're going to need it in the boot code, move it out to a separate, easily reusable function. This also makes the InitImport logic clearer.