Simplify conditions for serializing seed parameter.