simplifying resource definition