Break codec wrapping into own library.