Change Service file to using revealing module pattern