Directive logic move to bootstrap file