Do not use `restored_project` to reduce amount of SQL queries
What does this MR do?
Remove non-needed usage of @restored_project
. This reduces amount of SQL queries,
and simplifies the code slightly.
Related to: #33226 (closed)
Does this MR meet the acceptance criteria?
Conformity
Edited by Aleksei Lipniagov