Refactor promise usage.