Dry up your controllers by defining intelligent resources