HF RL Explorer

Refactoring of some functions

Refactoring of some functions: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Refactoring of some functions

The task

**Title:** Refactoring of some functions

Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.