Changed use of dialogue factory to use the newest API.

AFDP-112