coder_from_record and record_from_coder look good.  They should be moved into private