Moving verify_object_partition to module level