Converting POIs to building outlines

What is the most reliable way to convert a POI into a building outline preserving tags and relations?

Using JOSM, it’s easy to transfer tags from node to area using copy (Ctrl + C) and paste tags (Ctrl + Shift + V). Relation memberships need to be dealt with manually, afaik.