Some refactors
fixes review comments from https://github.com/huggingface/datasets-server/pull/1674. Thanks @AndreaFrancis!
Some refactors: fixes review comments from https://github.com/huggingface/datasets-server/pull/1674. Thanks @AndreaFrancis!