[utils] rework `_insert_frame_data` to use a class instead `_FrameAppender`.

Allow to split treatment and gain in readibility of the code.
2 jobs for refactor_insert_frame in 4 minutes and 48 seconds