Improve readability of modal promise callbacks.