Removing unused patterns from pattern lab