Indeed, it is hardcoded and impossible to make a city smaller.

A shame too. I wish the "exterminate" option or a new fourth option to "raze" or something would reduce the city size when conquering.

It is a shame there isn't a way to reduce size. You can kind of reduce sizes indirectly in M2TW, when switching between cities and castles.