[REFACTOR] ORM: DRY up controller error handling