Cleanup mesh size field and state classes.