Move the bones count and `has_translate_rotate` parameter out of the function as they are not required in some places.
chardet
charset_normalizer