Could be ``self.config = kwargs.get('config')[self.role]`` to simplify.