Could this function be reused when calculating errata applicability?