Core: Get rid of 'promise' local variable