chore: refactor get_configuration to use a dataclass
#1940
Merged
get_configuration to use a dataclass
#1940