instead of declaring the function here inline, can we declare it inside the closure and in the returned object only reference it, like

```js
return {
getFormattedDate: getFormattedDate 
...
}
```