Fix formatting
Refactoring, remove dead code, move legacy code to compat package
Revert 2e95b71, provide better solution
Fix workflow-instances-detailed.get API that was broken after refactoring