Refactored object type logging into utilities file.