Rewrite local space checks.