Refactoring web configuration adapter.