Refactor to separate out rekeying the frame sequence
FrameWriter and FrameReader utility classes