Remove the redundancy for geometry calculate function