Move trash utils from record into buffer.