Refactor: Move isPoweredOn to utility

The check of power on will be used by other components, so move it to
utility.
There are several constexpr definitions are used by multiple components,
move them into types.hpp so that we do not have duplicated constexprs.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I42ad142d6e7ae8da9c0cf6d8f5cb21dee229eba2
diff --git a/tools/power-utils/updater.cpp b/tools/power-utils/updater.cpp
index 41aa3eb..024fabc 100644
--- a/tools/power-utils/updater.cpp
+++ b/tools/power-utils/updater.cpp
@@ -17,6 +17,7 @@
 
 #include "updater.hpp"
 
+#include "types.hpp"
 #include "utility.hpp"
 
 #include <fstream>
@@ -28,9 +29,6 @@
 namespace updater
 {
 
-constexpr auto INVENTORY_IFACE = "xyz.openbmc_project.Inventory.Item";
-constexpr auto PRESENT_PROP = "Present";
-
 namespace internal
 {