Remove code duplications
Async thunk resolving