Converts a named function to variable holding an arrow function (in ES6) or function expression.