Refactor incoming subscription handling code into its own method