Using functions here causes this to test more than it needs to, and requires additional setup in the corresponding tests.