Request processing and response validation refactored