Cleaning up calculateFlowerBoundary