Merge assert and refute logic to a single method.