Remove some unnecessary uses of the serialize module.