Refactoring opennebula sensors