[GEN] Replace int constant generation with new method