Factor this out into a standalone function.
Factor this out into a standalone function.

Hopefully I can generalize this. My config object should be the
source-of-truth that gets passed around to whoever needs it, and the
event should have access to any session/user info required.

therealfakemoot/alpha