Remove `isDirective` constant.

The directive regular expression is only ever used once.