service platform refactoring