Maybe move this to `create_resource`?