Remove usage of function keyword when it's the only argument of a function, to make docs look nicer