Cleanup of type creation.