The thing is that methods are different for a stratum service and getwork service so interface should be discreate.