Removing pattern library