This function takes an arrow function and converts it into a function expression.

I'll find a better name...