Maint: Use function declarations

Use function declarations over function expressions, as this reduces the
number of anonymous function expressions.