Use a typeclass to unify Axial and Cube types