new Function() dynamically compiles code and is equivalent to eval().
Avoid the Function constructor. Refactor to static functions.