Best practices for dealing with unions