Replace AsyncDefinitionFunction with Promise.promisify