Refactored multiindex_combine to make it suitable for new requirements