Smartly merge multiple objects together