r1793: Moved some collection-specific stuff into view_collection.