Refactored code to change PositionEditor to GradientOrientationEditor