Removed unnecessary `new Function`.

Not sure why `new function` was being used.