The previous code would make two separate instances share the custom_id which might have been undesirable behaviour