How about using bucket_type instead of type here? It could get confusing. It sounds like object type.