HOPKINS: Some refactoring in DialogsManager