To move forward, we need to convert all of these (where %T is not a table alias):
qsprintf($conn, '... %T ...', $thing->getTableName());
qsprintf($conn, '... %R ...', $thing);
The new code is a little simpler (no ->getTableName() call) which is sort of nice. But we also have a lot of %T so this is probably going to take a while.
(I'll hold this until after the release cut.)