I feel sadder and sadder with this `cleanFields` function. Lots of `if` everywhere, a boolean parameter, I don't feel well with this.

There is 4 conditions, and there is 4 places where we call it. And the `previousHash` looks like a hack.

I've no particular proposition yet...