Refactor BezierPacs to a separate module