Begin refactoring of bezier curve calculations.