Simplify two alignment_of implementations