A bit of refactoring for one piston arm config