Extracted `from_params_or_json` to utils