Removing resolve and reject from the object returned by defer.promise()