Webapp parameter assignment refactoring