share more code in RecordComponentWriter

1 job for asm8-record in 10 minutes and 3 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #19276
build

00:10:03