Merge two configs into one with subprofiles