Factor out selection of SU algebra implementation by dimenasion into auto-generated code.