Refactoring BO build to static build