WIP for #336 (making `any_instance` optional and configurable)