Hoist the definitions of functions and consts out.
Hoist the definitions of functions and consts out.

RichardBarrell/snippets,RichardBarrell/snippets,RichardBarrell/snippets,RichardBarrell/snippets,RichardBarrell/snippets,RichardBarrell/snippets,RichardBarrell/snippets