I don't see why this boilerplate is repeated in all this file. Could we move that to a `setup` function ?