[TASK] Encapsulate bootstrap base code