Cleaning up type checks.