A little DRY in CRUD