Move getInvService() into utility function.

Resolves openbmc/openbmc#1299

Change-Id: I61f511dcc15e67393a47bd0395b752d2e6f17f11
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/Makefile.am b/Makefile.am
index 610e543..30223d0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,8 @@
 phosphor_fan_presence_tach_SOURCES = \
 	fan_enclosure.cpp \
 	tach_sensor.cpp \
-	tach_detect.cpp
+	tach_detect.cpp \
+	utility.cpp
 nodist_phosphor_fan_presence_tach_SOURCES = \
 	fan_detect_defs.cpp