Remove rendering logic from Cube