Split correctly controllers and directives.