Refactor `troo default <resource> <id>` to reduce duplication.