Organize the type checks.