found another place where BAD_ARTIFACTS was used in the old way; refactored bad-artifact detection into a method.