Making AlignOrientation Constraint Ignore Y-Axis

Basically what the title says, how would I go about making it so a part with an AlignOrientation constraint rotates to the corresponding X and Z rotations but rotate freely w/ the assembly on the Y axis.