Extract common bootstrap