Preparing to centralize dynamic SQL generation in StmtLibrary.