refactor: DRYing integration test plugin