Template Method Pattern

You could avoid using inheritance and inject the subscription

Thanks, Andy; I think this is what I was looking for. I’ll give this a shot.

BTW, how do you enable the color syntax highlighting?

How do you format your code blocks? Apparently Discourse auto-highlights fenced code blocks (delimited with 3 backticks), but not code that’s indented four spaces.