Clean up plane computation.