Move helper classes out from IScala.scala