Are all these replacements safe? This looks OK, but further on I worry about DECREFing `mit->ait` and `mit->subspace`. It's not clear to me that deallocating the `mit` will do that.