Server-side code refactoring.