Refactoring to all galleries.