pull up common functionality of inference method classes