Extract '_decode' and '_encode'
Extract '_parse_buffer' and '_parse_file'