Clean up, use register for finding RecordWriter implementations.