Move createToken to abstract class