I need help extracting a database listener function into its own callable function so I can unsubscribe from it. Here is what I have:
const reroute = (user) =>