Refactor bootstrap script for readability

It's just waiting to be refactored in the snowflake style.