Sure, I found this approach when I was trying to avoid duplicate resource declaration. `ensure_resource` is definitely more elegant.