Refactor otherModOreGen prevention.