Move out of Promise constructor callbacks.