Inverse API refactoring