Refactoring interfaces to be usable as server implementations