dehydrate_related modified to accept bundle instead of related_bundle. related_bundle is being created in the function anyway