Move bmc mode enum to a header file

Tested:

    Response in BM Mode:
    ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10
    79 2b 00 14 01

    Response in  Non-BM Mode:
    ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10
    79 2b 00 14 00

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
Change-Id: I3e0ca730ccaed74c3195eb3a4002719077251745
diff --git a/handler.cpp b/handler.cpp
index 161f10d..564eab8 100644
--- a/handler.cpp
+++ b/handler.cpp
@@ -13,6 +13,7 @@
 // limitations under the License.
 #include "handler.hpp"
 
+#include "bmc_mode_enum.hpp"
 #include "errors.hpp"
 #include "handler_impl.hpp"
 #include "util.hpp"
@@ -66,13 +67,6 @@
 using InternalFailure =
     sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
 
-enum class BmcMode : uint8_t
-{
-    NON_BM_MODE = 0,
-    BM_MODE,
-    BM_CLEANING_MODE
-};
-
 uint8_t isBmcInBareMetalMode()
 {
 #if BARE_METAL