Split off some bootstrap and startup helper functions into their own files