Could you join lines for same things?

```js
realDatastore = navigator.getDataStores;
navigator.getDataStores = MockNavigatorDatastore.getDataStores;
MockNavigatorDatastore._records = {};

realPhoneNumberService = navigator.mozPhoneNumberService;
navigator.mozPhoneNumberService = MockPhoneNumberService;
```