Move group expansion from catalog to library.
Add pattern preview in group creation.