refactored duplication in ReduxService