RAZ-3488: Scope issue with custom views and Amazon S3 as storage