Clean up code for provisioning

If there's no code after the `yield` statement, this should just be a normal pytest fixture, not a yield fixture.