Refactored Code , Template Pattern Has been Used

With Umer's Code for Group ID incorporation in BackEndService