refactor($emplateRequest): simplify filtering out of transform functions

I guess it might be just me but I find it a lot easier to read / understand this chunk of code when it is written using the `.filter` method. 

Unless the code was written like this for perf reasons.