Split code into smaller files
Add unit tests for simplifyBQResponse