SPRO-49: Refactor PR #101
SPRO-49: Refactor PR #101

Refactor by making the code less complicated, group try/catch statements, improve formatting

subscribepro/subscribepro-magento2-ext,subscribepro/subscribepro-magento2-ext,subscribepro/subscribepro-magento2-ext,subscribepro/subscribepro-magento2-ext