Simpler code for schema truncation