Refactoring splitting oozie metrics and ganglia metrics constructor to be reusable for nagios and for maintenance