Refactor CollectionProxy#scope to avoid calling #extend.