pull up common functionality in inference method classes