[Optimization] Moved code for computing quad bounding boxes to constructor.