Streamlining attribute initialization for directives.