refactoring. HelperService created with helper methods