Simplifying promise usage