LPS-46842 remove the `actualRepositoryId` variable

The value of `repository.getRepositoryId()` will be always the same as `repositoryId`.