Cleaning up pololu partitioning code