Refactor the code, remove the dependency to service in equipment list and task list view.