Using class hierarchy when retrieving configurations from redis

@traggattog Could you take a look?