Reduce complexity by removing testing-specific code

                   
|Q            |A  |
|---          |---|
|Bug Fix?     |no |
|New Feature? |no |
|BC Breaks?   |no |
|Deprecations?|no |
|Tests Pass?  |yes|
|Fixed Tickets|   |
|License      |MIT|
                   


 Sent using [Gush](https://github.com/gushphp/gush)