Both reasons you mentioned contribute. Every engine we build is different. Most of them are non standard spec/component. Putting an all stock Nissan engine back is easier but ultimately boring. The components used ie piston, cam, headgasket are all factored in the calculation. There is block to piston and valve to piston clearance to think about.