Small refactoring in EntriesService

Changed scope of resource variables so they are visible only from inside of EntriesService
Small refactoring in EntriesService continued.

Changed scope of other resource variables.