Encapsulated healthcheck logic and removed from service.go