Shared logic for boostrap things