Add out_of_scope_reason, tests, and database migration