refactored request param extraction to exist in single method