Clean up protocol message classes.