Refactored UDC.Cube into a separate module