Moved quest generation code into its own class Moved shared methods used by controller and generator into helper class