Refactor MediaWikiIntegrationTestCase::resetDB() for readability