Reusing pieces of a simulation?


I’ve got a set of simulations that all require a login step. I’d like to extract that into some sort of class that I can maintain once, and have all simulations use it.

Here’s an example (it’s kind of ugly because we are using a third party for the auth):


Move them to objects or traits and expose the parts as val: