From what I remember when I looked into NASCAR engines the block and the heads are the only thing that are required to be “stock” and are bought from the respective OEMs. The actual teams build their own engines after that. Hence how they're able to squeeze 900+ hp from a NA engine.