In that case I strongly suggest removing `createBase`, as it has an unexpected side effect. You could simply inline the code, as it's only called in one place.