AL: refactoring of 3D cases