Refactoring dialog configs