Extracted the command logic to simplify init()
Moving method generation out of generateClass()