pub type RecoveryProfile = fn(phy_id: u16, defect_history: &mut EventHistory<Defect>, recovery_history: &mut EventHistory<RecoveryAction>, latest_defect: Defect) -> Option<RecoveryAction>;