https://trello.com/c/UFjU3xw4/382-bastion-replace-function-declarations-with-function-expressions