Rewrite ScalaTokenId discarding extends Scala's Enumeration.