Extract directives code to a bootstrap file