Remove duplication from 'promise' wrapper.