```
var appendFiles = this.env.options.jade ? appendFilesToJade : this.appendFiles;
appendFiles(filesToAppend)
```
Would something like that work better so you dont have this block repeated so many times?